package cn.kpi.dao.sys;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.kpi.common.persistence.MyBatisDao;
import cn.kpi.entity.sys.GeneralCodeEntity;

@MyBatisDao
public interface GeneralCodeDao {
public int InsertEntity(GeneralCodeEntity entity) throws Exception;
public List<GeneralCodeEntity> GetGeneralCodeList()throws Exception;
public List<GeneralCodeEntity> GetGeneralCodeListLimit(@Param("beginrow")int beginrow,@Param("endrow")int endrow)throws Exception;
public int GetGeneralCodeListLimitCount()throws Exception;
public GeneralCodeEntity GetGeneralCodeById(Long generalid)throws Exception;
public int DeleteEntity(Long generalid)throws Exception;
public int UpdateEntity(GeneralCodeEntity entity)throws Exception;
public List<GeneralCodeEntity> GetGeneralCodeListByWhere(@Param("where") String where)throws Exception;
}
